import request from '@/utils/request'

// 查询金币记录列表
export function listUserCoinRecord(query) {
  return request({
    url: '/lakk/UserCoinRecord/list1',
    method: 'get',
    params: query
  })
}

// 查询金币记录详细
export function getUserCoinRecord(userid) {
  return request({
    url: '/lakk/UserCoinRecord/' + userid,
    method: 'get'
  })
}

// 新增金币记录
export function addUserCoinRecord(data) {
  return request({
    url: '/lakk/UserCoinRecord',
    method: 'post',
    data: data
  })
}

// 修改金币记录
export function updateUserCoinRecord(data) {
  return request({
    url: '/lakk/UserCoinRecord',
    method: 'put',
    data: data
  })
}

// 删除金币记录
export function delUserCoinRecord(userid) {
  return request({
    url: '/lakk/UserCoinRecord/' + userid,
    method: 'delete'
  })
}
